﻿using DevExpress.ExpressApp.Blazor;
using Microsoft.AspNetCore.Components;

namespace EasyXaf.Blazor.ImageViewers;

public class ImageViewerAdapter : IComponentContentHolder
{
    public ImageViewerModel Model { get; }

    public RenderFragment ComponentContent => ImageViewerRenderer.Create(Model);

    public ImageViewerAdapter(ImageViewerModel model)
    {
        Model = model;
    }
}
